package com.huawei.crm.sample.adapter.inbound.rest.product.converter;

import com.huawei.crm.sample.adapter.inbound.rest.product.vo.ProductVO;
import com.huawei.crm.sample.application.product.dto.ProductDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(componentModel = "spring")
public interface ProductVOConverter {
    ProductVOConverter INSTANCE = Mappers.getMapper(ProductVOConverter.class);

    ProductVO toVO(ProductDTO dto);
    ProductDTO toDTO(ProductVO vo);
} 